package com.wedu.dao;

import com.wedu.entity.Student;

//数据库访问层DAL
public interface StudentDao {
    //根据id查找学生
    Student findOneById(int id);
    //验证登录
    Student login(String name,String password);
    //学生注册
    int register(String name,String sex,int age,String password);
    //修改学生信息
    Student updateMsg(int id,String name,int age,String sex,String password);
    //根据id删除学生
    Student deleteStu(int id);
}
